package com.neu.flashmall.product.mapper;

import com.neu.flashmall.product.entity.PmsSpuImages;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
* @author 50286
* @description 针对表【pms_spu_images(spu图片)】的数据库操作Mapper
* @createDate 2022-07-13 09:52:58
* @Entity com.neu.flashmall.product.entity.PmsSpuImages
*/
@Mapper
public interface PmsSpuImagesMapper {

    int deleteByPrimaryKey(Long id);

    int insert(PmsSpuImages record);

    int insertSelective(PmsSpuImages record);

    PmsSpuImages selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(PmsSpuImages record);

    int updateByPrimaryKey(PmsSpuImages record);

    List<PmsSpuImages> getImageBySpu(Long spuId);

    PmsSpuImages selectDefaultImgBySpuId(Long spuId);

    int deleteBySpuId(Long spuId);
}
